package com.cd.common.util;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * @Description 这里存放一些商品常用的状态码，成功则返回200，失败返回其他
 * @Author lqq
 * @Date 2023/11/18 10:49
 **/
@AllArgsConstructor
@NoArgsConstructor
public enum LqqGoodEnum {

    LQQ_GOOD_SUCCESS(9000, "抢购成功"),
    LQQ_GOOD_FAIL_2(9001, "活动太火爆了,请再试一次"),
    LQQ_GOOD_NOT_ENOUGH(9001, "库存不足" ),
    LQQ_GOOD_NOT_PERMISSION(9001,"这个票种你买不了啊喂");

    private int code;
    private String msg;

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
